<!-- user don't have social account message -->
<div class="no-social-account" ng-if="noAccount">
    <div ng-bind-html="noAccountMessage"></div>
</div>

<!-- main output data -->
<div class="social-data-wrap">
    <div class="text-center loading-wrap" ng-if="searchLoading">
        <strong>{{searchLoading}}</strong>
    </div>

    <div class="s-d-individual" ng-if="socialData.length > 0" ng-repeat="post in socialData">
        <div class="media">
            <div class="media-left">
                <a href="https://instagram.com/{{post.user.username}}" target="_blank">
                    <img class="media-object" ng-src="{{post.user.profile_picture}}">
                </a>
            </div>

            <div class="media-body">
                <h4 class="media-heading">
                    <a href="https://instagram.com/{{post.user.username}}" target="_blank">{{post.user.full_name}}</a>
                    <small>@{{post.user.username}}</small>
                </h4>

                <div class="m-b-detail">
                    <a class="mbd-img" href="{{post.images.standard_resolution.url}}" magnific-popup-image>
                        <img ng-src="{{post.images.low_resolution.url}}" class="img-responsive img-rounded">
                    </a>

                    <a href="{{post.link}}" target="_blank">
                        {{post.caption.text}}
                    </a>

                    <div class="s-n-i-stats">
                        <span>
                            <i class="fa fa-star"></i>{{post.likes.count | megaNumber}}
                        </span>

                        <span>
                            <i class="fa fa-comment"></i>{{post.comments.count | megaNumber}}
                        </span>
                    </div>

                    <div class="text-right">
                       <time>{{post.created_time*1000 | date:'yyyy-MM-dd HH:mm:ss'}}</time>
                    </div>
                </div>
            </div>
        </div>      
    </div>

    <div class="text-center padding-top-20 padding-bottom-20" ng-if="nextPage">
        <button class="btn btn-primary"  ng-click="loadMoreData($event);">{{loadingText}}</button>
    </div>
</div>